/*
 * client_protocol.c
 *
 *  Created on: Dec 16, 2009
 *      Author: Marco Luisi
 */

void list() {
	int len;
	int i;
	int mnum = 0;
	printf("LIST!\n");
	read(in,&mnum,sizeof(int));
	matrices = malloc(mnum * sizeof(char*));
	for(i = 0; i< mnum; i++) {
		read(in, &len, sizeof(int));
		matrices[i] = malloc(len * sizeof(char));
		read(in,matrices[i],len);
		printf("matrice %d: %s\n",i,matrices[i]);
		}
	return; //serve
}
